#ifndef _ERR_h
#define _ERR_h
#include "headfile.h"

#define ERZHIHUA 1
#define white  255
#define black  0

extern int16 error;
extern int16 endline;
extern int16 midline[MT9V03X_H];
extern uint8 Bin_Image[MT9V03X_H][MT9V03X_W];
extern int16 Threshold_final;
extern uint8 sancha;
extern uint8 huandaoflag;

void err_deal(void);
void get_bin(void);
//int16 GetOSTU (uint8 tmImage[MT9V03X_H][MT9V03X_W]);

typedef struct
{
    int16 BlackEndMR      ;
    int16 BlackEndML      ;
    int16 BlackEndLL      ;
    int16 BlackEndRR      ;
    int16 BlackEndL       ;
    int16 BlackEndM       ;
    int16 BlackEndR       ;
    int16 BlackEndMaxMax  ;
    int16 BlackEndMax     ;
    int16 DropRow         ;
}Endline_Get;


#endif
